<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ page import="java.util.*,Model.Committee"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Print Committee</title>
</head>
<body>
	<%
		if (session.getAttribute("name") == null) {
			response.sendRedirect("login.jsp");
		}
	%>
	<!-- Declare the first header -->
	<jsp:include page="t_header.jsp" />

	<!-- Declare Breadcrumbs options -->
	<div class="breadcrumbs_container">
		<article class="breadcrumbs"> <a href="committee_main.jsp">Manage
			Committee</a>
		<div class="breadcrumb_divider"></div>
		<a class="current">Search Committee</a> </article>
	</div>
	<jsp:include page="header.html" />
	<!-- Declare sidebar -->
	<jsp:include page="t_siderbarcommittee.jsp" />

	<!-- Main Content -->
	<section id="main" class="column"> <%
 	if (request.getParameter("error") != null) {
 		if (request.getParameter("error").equals("1"))
 			out.print("<h4 class='alert_error'>Error - No blanks.</h4>");
 	}
 %> <article class="module width_3_quarter"> <%
 	Committee com = new Committee();
 	ArrayList<Committee> comArr = new ArrayList<Committee>();
 	comArr = Committee.getApprovedCommittees();
 %>
	<form action="CommitteePrint" method="POST">
		<header>
		<h3>Search committee</h3>
		</header>
		<div class="module_content">

			<fieldset id="committeeFieldset" style="width: 48%; float: left;">
				<label>By committee: </label> 
				<select name="id">
				<% for(int i = 0 ; i < comArr.size();i++){
					com = comArr.get(i);	
				%>
					<option value="<%= com.getId() %>"><%= com.getTitle() %></option>
					<%} %>
				</select>
			</fieldset>

			<div class="clear"></div>
		</div>
		<footer>
		<div class="submit_link">
			<input type="submit" name="submit" value="Search" onclick="showData()" class="alt_btn">
		</div>
		</footer>
	</form>
	</article> <!-- end of content manager article -->
	<div class="spacer"></div>
	</section>
</body>
</html>